/*
 *
 * @ProjectName:    my_umi_app
 * @Package:
 * @ClassName:      blog_article_type
 * @Description:    博客文章相关类型定义
 * @Author:         SuPeiSen
 * @CreateDate:     2021/2/3 4:11 下午
 * @UpdateDate:     2021/2/3 4:11 下午
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */

import ex from 'umi/dist';

/**
 * 博客文章列表
 */
export interface BlogArticleListType extends BasePageType {
  lists: Array<BlogArticleItemType>;
}

/**
 * 博客每个文章的定义
 */
export interface BlogArticleItemType {
  id: number;
  article_title: string;
  article_image: string;
  article_content: string;
  article_consult: Array<{
    consultName: string;
    consultUrl: string;
  }>;
  article_read: number;
  article_sticky: number;
  article_originate: number;
  article_synopsis: string;
  add_time: string;
  update_time: string;
  articleCategory: {
    id: number;
    category_name: string;
  };
  articleTag: Array<BlogArticleTag>;
}

/**
 * 文章标签
 */
export interface BlogArticleTag {
  id: number;
  tag_name: string;
  tag_color: string;
  icon_url: string;
}
